package com.asset.salesforce.form;

import java.util.Date;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.annotations.BatchSize;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import com.asset.salesforce.validator.CallFellowUpDateChecker;
import com.asset.salesforce.validator.CallNotExit;

@CallFellowUpDateChecker
@CallNotExit
public class CallForm {
private Integer empId;
private Integer crmStaff;
private Integer contactedPerson;
private String date;
private String inOutCall;
private String decisionMaker;
private String comment;
private String nextFollowUp;
private String nextFollowUpType;
private String nextFollowUpDate;
private String nextFollowUpDetails;
private Integer parentId;
private String startTime;
private String endTime;

@NotNull()
public Integer getCrmStaff() {
	return crmStaff;
}
public void setCrmStaff(Integer crmStaff) {
	this.crmStaff = crmStaff;
}
@NotNull()
public Integer getContactedPerson() {
	return contactedPerson;
}
public void setContactedPerson(Integer contactedPerson) {
	this.contactedPerson = contactedPerson;
}
@NotEmpty
//@Pattern(regexp="(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/((19|20)\\d\\d)")
public String getDate() {
	return date;
}
public void setDate(String date) {
	this.date = date;
}
//@NotEmpty()
public String getInOutCall() {
	return inOutCall;
}
public void setInOutCall(String inOutCall) {
	this.inOutCall = inOutCall;
}
@NotEmpty()
public String getDecisionMaker() {
	return decisionMaker;
}
public void setDecisionMaker(String decisionMaker) {
	this.decisionMaker = decisionMaker;
}
public String getComment() {
	return comment;
}
public void setComment(String comment) {
	this.comment = comment;
}
//@NotEmpty()
public String getNextFollowUp() {
	return nextFollowUp;
}
public void setNextFollowUp(String nextFollowUp) {
	this.nextFollowUp = nextFollowUp;
}
public String getNextFollowUpType() {
	return nextFollowUpType;
}
public void setNextFollowUpType(String nextFollowUpType) {
	this.nextFollowUpType = nextFollowUpType;
}
public String getNextFollowUpDate() {
	return nextFollowUpDate;
}
public void setNextFollowUpDate(String nextFollowUpDate) {
	this.nextFollowUpDate = nextFollowUpDate;
}
//@NotEmpty()
public String getNextFollowUpDetails() {
	return nextFollowUpDetails;
}
public void setNextFollowUpDetails(String nextFollowUpDetails) {
	this.nextFollowUpDetails = nextFollowUpDetails;
}
public Integer getParentId() {
	return parentId;
}
public void setParentId(Integer parentId) {
	this.parentId = parentId;
}
/**
 * @return the startTime
 */
@NotEmpty(message="please,Enter the Start Time")
public String getStartTime() {
	return startTime;
}
/**
 * @param startTime the startTime to set
 */
public void setStartTime(String startTime) {
	this.startTime = startTime;
}
/**
 * @return the endTime
 */
@NotEmpty(message="please,Enter the End Time")
public String getEndTime() {
	return endTime;
}
/**
 * @param endTime the endTime to set
 */
public void setEndTime(String endTime) {
	this.endTime = endTime;
}
/**
 * @return the empId
 */
public Integer getEmpId() {
	return empId;
}
/**
 * @param empId the empId to set
 */
public void setEmpId(Integer empId) {
	this.empId = empId;
}

}
